package com.zxd.threads.thread_lock.optimistic_lock;

/**
 * ClassName:RunnableTask
 * Package:com.zxd.threads.thread_optimistic_lock
 *
 * @Date:2023/9/28 14:22
 * @Author:zxde
 */
public class RunnableTask implements Runnable{
    private Movie movie;

    public RunnableTask(Movie movie) {
        this.movie = movie;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            movie.setCount();
        }
    }
}
